package com.alexsh.service.bookspresentation.impl;

import com.alexsh.service.bookspresentation.BookFactory;
import com.alexsh.service.bookspresentation.BookManager;

/**
 * @author Alexander Shmygin <AShmygin@luxoft.com>
 * @version 1.0
 */
public class BookContentGenerator {
    private BookFactory bf;
    private BookManager manager;

    public BookContentGenerator(BookFactory bf) {
        this.bf = bf;
        this.manager = bf.getManager();
    }

    public String getContent() {
        return manager.getContent();
    }

    public String getById(String bookId) {
        return manager.getById(bookId);
    }
}
